<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:p="http://primefaces.org/ui"
                 xmlns:xc="http://java.sun.com/jsf/composite/xpert/components"
                 xmlns:x="http://xpert.com/faces">

    <p:tab title="State.java">
        <pre name="code" class="java">
        package com.xpert.showcase.model;

        import java.io.Serializable;
        import java.util.List;
        import javax.persistence.Entity;
        import javax.persistence.GeneratedValue;
        import javax.persistence.GenerationType;
        import javax.persistence.Id;
        import javax.persistence.ManyToOne;
        import javax.persistence.OneToMany;

        @Entity
        public class State implements Serializable {

            @Id
            @GeneratedValue(strategy = GenerationType.AUTO)
            private Long id;
            private String name;
            @ManyToOne
            private Country country;
            @OneToMany(mappedBy = &quot;state&quot;)
            private List&lt;City&gt; cities;

            public Long getId() {
                return id;
            }

            public void setId(Long id) {
                this.id = id;
            }

            public List&lt;City&gt; getCities() {
                return cities;
            }

            public void setCities(List&lt;City&gt; cities) {
                this.cities = cities;
            }

            public Country getCountry() {
                return country;
            }

            public void setCountry(Country country) {
                this.country = country;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

        }

        </pre>
    </p:tab>
</ui:composition>
